﻿function submit() {
    $.ajax({
        url: "/Index",
        success: function () {
            console.log(this);
        },
        error: function () {
            console.log(this);
        }
    });
}
$("#submit").click(submit);